package indi.cloud.common.model.esdoc;

import indi.cloud.common.elasticsearch.core.EsBaseEntity;
import indi.cloud.common.elasticsearch.core.esmethod.EsEquals;
import indi.cloud.common.elasticsearch.core.esmethod.EsLike;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @author yangyifan
 * @version 1.0
 * @date 2024/1/29 10:59
 * @Description
 */
@Document(indexName = "enterprise-list")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class EsEnterpriseListDoc extends EsBaseEntity {
    @EsEquals
    private String credit_code;

    @EsLike(whileLike = true)
    private String enterprise_name;

    @EsEquals
    private String ent_type;
}
